<div ng-include="'html/component/nav.html'" ng-controller="NavCtrl"></div>
<ul class="set_item" ng-include="'html/component/left_nav.html'" ng-controller="CunhuoNavCtrl">
</ul>
<div class="set_box">
  <h1 class="set_title_auto"><!--盘点任务单详情-->{{language.TIPS_INVENTORY_CHECK_ORDER_TASK_DEAIL}}<span class="title_btn_group"> 
  <a class="title_btn" href="javascript:void(0);" ng-click="come_back();"><!--关闭-->{{language.ACT_CLOSE}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show ="add" ng-click="add_pandianRecord(pandianTask_list_detail.record.record_code,pandianTask_list_detail.record.take_stock_type,pandianTask_list_detail.record.brand_code,pandianTask_list_detail.record.brand_name);"><!--新增盘点单-->{{language.TIPS_INVENTORY_ADD_CHECK_ORDER}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show="zx"  ng-click="do_act(pandianTask_list_detail.record.record_code);"><!--执行-->{{language.ACT_EXECUTE}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show="cp"  ng-click="rePandian(pandianTask_list_detail.record.record_code);"><!--重盘-->{{language.TIPS_REPEAT_STOCK}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show="yyk"  ng-click="is_pre_profit_and_loss(pandianTask_list_detail.record.record_code);"><!--预盈亏-->{{language.TIPS_INVENTORY_PROFIT_LOSS}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show="qr"  ng-click="confirm(pandianTask_list_detail.record.record_code);"><!--确认-->{{language.ACT_CONFIRM}}</a>
  <a class="title_btn" href="javascript:void(0);" ng-show="yk"  ng-click="profit_and_loss(pandianTask_list_detail.record.record_code);"><!--盈亏-->{{language.TIPS_INVENTORY_ALREADY_PROFIT_LOSS}}</a>
  </span></h1>
  <div class="set_cont detail_page" ng-swipe-right="come_back();">
    <form class="detail_form">
      <p class="title"> <!--盘点任务单-->{{language.TIPS_INVENTORY_CHECK_ORDER_TASK}}：{{pandianTask_list_detail.record.record_code}} </p>
      <table class="detail_table">
        <tr>
          <td class="name"><!--日期-->{{language.TIPS_INVENTORY_DATE}}：</td>
          <td class="val">{{pandianTask_list_detail.record.record_time}}</td>
          <td class="name"><!--店铺-->{{language.TIPS_INVENTORY_SHOP}}：</td>
          <td class="val">{{pandianTask_list_detail.record.store_code}}</td>
        </tr>
        <tr>
          <td class="name"><!--重盘次数-->{{language.TIPS_REPEAT_STOCK_COUNT}}：</td>
          <td class="val">{{pandianTask_list_detail.record.repeat_take_stock_num}}</td>
          <td class="name"><!--账面库存数-->{{language.TIPS_INVENTORY_STOCK_NUM}}：</td>
          <td class="val">{{pandianTask_list_detail.record.physical_count_num}}</td>
        </tr>
        <tr>
          <td class="name"><!--盈亏金额-->{{language.TIPS_INVENTORY_PROFIT_LOSS_MONEY}}：</td>
          <td class="val">{{pandianTask_list_detail.record.profit_and_loss_money|number:2}}</td>
          <td class="name"><!--盈亏数量-->{{language.TIPS_INVENTORY_PROFIT_LOSS_NUM}}：</td>
          <td class="val">{{pandianTask_list_detail.record.profit_and_loss_num}}</td>
        </tr>
        <tr>
          <td class="name"><!--实际库存金额-->{{language.TIPS_INVENTORY_REAL_STOCK_MONEY}}：</td>
          <td class="val">{{pandianTask_list_detail.record.take_stock_money|number:2}}</td>
          <td class="name"><!--账面库存金额-->{{language.TIPS_INVENTORY_REAL_STOCK_NUM}}：</td>
          <td class="val">{{pandianTask_list_detail.record.physical_count_money}}</td>
        </tr>
        <tr>
          <td class="name"><!--更新时间-->{{language.TIPS_INVENTORY_UPDATE_TIME}}：</td>
          <td class="val">{{pandianTask_list_detail.record.lastchanged}}</td>
          <td class="name"><!--盘点类型-->{{language.TIPS_INVENTORY_CHECK_TYPE}}：</td>
          <td class="val">{{pandianTask_list_detail.record.take_stock_type_name}}</td>
        </tr>
        <tr>
          <td class="name"><!--品牌-->{{language.TIPS_SET_BRAND}}：</td>
          <td class="val">{{pandianTask_list_detail.record.brand_name}}</td>
        </tr>
      </table>
    </form>
    <form class="detail_form">
      <p class="title"> <!--商品明细-->{{language.TIPS_INVENTORY_DETAILED}} </p>
      <table class="goods_table">
        <tr>
          <th>sku</th>
          <th><!--名称-->{{language.TIPS_INVENTORY_NAME}}</th>
          <th><!--账面数-->{{language.TIPS_INVENTORY_BOOK_NUMBER}}</th>
          <th><!--实盘数-->{{language.TIPS_INVENTORY_FIRM_OFFER}}</th>
          <th><!--盈亏数-->{{language.TIPS_INVENTORY_PROFIT_LOSS_NUM}}</th>
          <th><!--单价-->{{language.TIPS_INVENTORY_UNIT_PRICE}}</th>
          <th><!--盈亏金额-->{{language.TIPS_INVENTORY_PROFIT_LOSS_MONEY}}</th>
        </tr>
        <tr ng-repeat="p in pandianTask_list_detail.record_detail">
          <td>{{p.sku}}</td>
          <td>{{p | language_filter_show:'GoodsName'}}</td>
          <td>{{p.physical_count_num}}</td>
          <td>{{p.num}}</td>
          <td>{{p.profit_and_loss_num}}</td>
          <td>{{p.price|number:2}}</td>
          <td>{{p.profit_and_loss_money|number:2}}</td>
        </tr>
      </table>
    </form>
    
  </div>
</div>
